"""
configuration.py
Jose Guzman, sjm.guzman@gmail.com
Date: Fri Mar  7 20:40:35 CET 2014

This file contains a dictionary with the different recording configurations
(e.g pairs, triples, quadruples, etc...) that are in turn dictionaries
with the number of configurations tested ('nconf') and number of 
connections found ('nfound'). 
"""

def make_dict(nconf, found):
    """
    returns a dictionary with number of configurations
    and number of pairs found of the form:
    {'nconf' : int, 'nfound' : int}

    """
    mydict = {}
    mydict['nconf'] = nconf
    mydict['nfound'] = found
    return (mydict)


# a dictionary containing a dictionary with the recording configurations
# every member of the dictionary will contain the number of 
# configuration tested and the number of connections found 
# like myconf['pairs'] = {'nfound': 5, 'nconf': 84}
myrecording = {
    'pairs'        : make_dict(495, 5 ),
    'triples'      : make_dict( 92, 5 ),
    'quadruples'   : make_dict(126, 16),
    'quintuples'   : make_dict( 91, 24),
    'sextuples'    : make_dict( 87, 36),
    'septuples'    : make_dict( 43, 11),
    'octuples'     : make_dict( 30, 14),
    }
